#pragma once

#include "Object.h"
#include "Define.h"
#include "VideoDriver.h"
#include "Circle.h"

class Rectangles : public Object
{
public:
	Rectangles();
	Rectangles(float posX, float posY, int width, int height);
	~Rectangles();

	void Render();
	void Update(float frameTime);

	void HandleTouchAction(Touch *touch);
	bool IsInRect(int x, int y);

	void SetWidth(int width);
	void SetHeight(int height);
	int GetWidth();
	int GetHeight();

	bool IsCollideWithObject(Object* object);
	bool IsCollideWithRect(float x, float y, int width, int height);
	bool IsCollideWithCircle(Circle* circle);
	int IsCollideEdge();

	float GetCenterPosX();
	float GetCenterPosY();

private:
	int m_iRectWidth, m_iRectHeight;

};